<template>
	<view class="lossItem">
		<view class="date-wrapper">
			<text class="date">
				2024.08.30 14:38:30上报
			</text>
			<text class="status">待判责</text>
		</view>
		<view class="info-wrapper">
			<view class="item">
				货品：绿食者 水果黄瓜500g 黄瓜短小青黄瓜 新鲜上市
			</view>
			<view class="item">
				车次：宁ASD7865 / 2024.8.31
			</view>
			<view class="item">
				报损原因：卸车过程中摔坏货物
			</view>
			<view class="item">
				货损数量：2件
			</view>
		</view>
		<!-- <view class="btn-wrapper">
			<view class="btn">
				质检记录
			</view>
			<view class="btn">
				交货记录
			</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		props: {
			index: {
				type: Number,
				default () {
					return 0
				}
			}
		},
		data() {
			return {

			}
		},
		mounted() {

		},
		methods: {

		},
		components: {

		}
	}
</script>

<style lang="scss" scoped>
	.lossItem {
		background-color: #ffffff;
		border-radius: 10upx;
		padding: 20upx;

		.date-wrapper {
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-size: 32upx;
			margin: 5upx 0;
			padding-bottom: 20upx;
			border-bottom: 1upx solid #efefef;

			.date {
				color: #232323;
			}

			.status {
				color: #018737;
			}
		}

		.info-wrapper {
			font-size: 32upx;
			color: #434343;

			.item {
				margin-top: 10upx;
			}
		}

		.btn-wrapper {
			display: flex;
			align-items: center;
			justify-content: flex-end;
			margin-top: 10upx;

			.date {
				flex: 1;
				font-size: 24upx;
				color: #666;
			}

			.btn {
				padding: 5upx 30upx;
				background-color: #ffffff;
				border: 1upx solid #898989;
				border-radius: 10upx;
				font-size: 28upx;
				margin-left: 15upx;

				&.primary {
					color: #ffffff;
					background-color: #018737;
					border-color: #018737;
				}
			}
		}
	}
</style>